# 设置编译安装目录
if(INFERENCE_BACKEND STREQUAL "CUDA")
    set(MY_OUT_DIR ${arch}-${vs_version}-cuda${MY_CUDA_VERSION}-trt${MY_TRT_VERSION})
elseif(INFERENCE_BACKEND STREQUAL "OPENVINO")
    set(MY_OUT_DIR ${arch}-${vs_version}-openvino)
endif()

# 设置编译输出目录
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/build/${MY_OUT_DIR})
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/build/${MY_OUT_DIR})
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/build/${MY_OUT_DIR})

# 设置安装目录
set(CMAKE_INSTALL_PREFIX ${CMAKE_CURRENT_LIST_DIR}/install/${MY_OUT_DIR})
set(CMAKE_PDB_OUTPUT_DIRECTORY "${CMAKE_INSTALL_PREFIX}/pdb")